<?php
require_once("../connection.php");

$gpid = $_POST['gpid'];
$user = $_POST['user'];

$res = mysql_query("UPDATE site_groups SET `del`='1' WHERE `id`='$gpid'");
if(!$res) echo mysql_error();

$res1 = mysql_query("UPDATE site_posts SET `del`='1' WHERE `type`='group_$gpid'");
if(!$res1) echo mysql_error();

$res2 = mysql_query("UPDATE site_group_members SET `del`='1' WHERE `gpid`='$gpid'"); 
if(!$res2) echo mysql_error();
?>